package com.hightrast.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hightrast.service.api.domain.qo.rastProducts.QueryProductCountQo;
import com.hightrast.service.api.domain.qo.rastProducts.QueryRastProductsQo;
import com.hightrast.service.api.domain.vo.rastOrderItem.QueryProductCountVo;
import com.hightrast.service.api.domain.vo.rastProduct.QueryRastProductsVo;
import com.hightrast.service.api.entity.RastProducts;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author hx
 * @since 2025-01-22
 */
public interface RastProductsMapper extends BaseMapper<RastProducts> {

    IPage<QueryRastProductsVo> selectProducts(@Param("page") IPage<QueryRastProductsVo> page, @Param("qo") QueryRastProductsQo qo);

    List<QueryProductCountVo> selectProductCount(@Param("qo") QueryProductCountQo qo);
}
